package com.second.model.dto.reply;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.second.model.pojo.FReply;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.sql.DataSource;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 本类用来演示:
 *
 * @author: MuTing
 * @date: 2022-05-19 21:24
 */
@Data
public class FReplyDto implements Serializable {

    private Integer id;

    private Integer commentId;

    private String userName;

    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    //前端传过来一个日期字符绑定到这个属性
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date replyTime;

    private List<FReply> list;
}
